<div id="middle">
    <h2>
	<?php echo $this->lang->line('services');?>

	<span>
	    <a href="/"><?php echo $this->lang->line('home');?></a> > 
	    <a href="/service"><?php echo $this->lang->line('services');?></a> > 
	    <?php if($id < 5):?>
	    <a href="javascript:void(0);"><?php echo $this->lang->line('practice_field');?></a> > 
	    <?php else:?>
	    <a href="javascript:void(0);"><?php echo $this->lang->line('market_sector');?></a> > 
	    <?php endif;?>
	    <a href="javascript:void(0);"><?php echo $this->lang->line($menus[$index]);?></a>
	</span>
    </h2>

    <dl>
	<dt><?php echo $this->lang->line('practice_field');?></dt>
	<dd<?php echo $id == 1?' class="active"':'';?>><a href="/service/index/1"><?php echo $this->lang->line('urban_planning');?></a></dd>
	<dd<?php echo $id == 2?' class="active"':'';?>><a href="/service/index/2"><?php echo $this->lang->line('architecture_desion');?></a></dd>
	<dd<?php echo $id == 3?' class="active"':'';?>><a href="/service/index/3"><?php echo $this->lang->line('landscape_design');?></a></dd>
	<dd<?php echo $id == 4?' class="active"':'';?>><a href="/service/index/4"><?php echo $this->lang->line('tourism_and_resorts');?></a></dd>
	<dd<?php echo $id == 5?' class="active"':'';?>><a href="/service/index/5"><?php echo $this->lang->line('consulting');?></a></dd>
	<dt><?php echo $this->lang->line('market_sector');?></dt>
	<dd<?php echo $id == 6?' class="active"':'';?>><a href="/service/index/6"><?php echo $this->lang->line('real_estate');?></a></dd>
	<dd<?php echo $id == 7?' class="active"':'';?>><a href="/service/index/7"><?php echo $this->lang->line('governement');?></a></dd>
	<dd<?php echo $id == 8?' class="active"':'';?>><a href="/service/index/8"><?php echo $this->lang->line('commercial');?></a></dd>
    </dl>

    <div class="content">
	<?php if(count($slide_shows)):?>
	<div id="slide-show">
	    <table cellspacing="0" cellpadding="0" border="0">
		<tbody>
		    <tr>
			<?php foreach($slide_shows as $slide_show): ?>
    			<td>
    			    <a href="<?php echo empty($slide_show->link)?'javascript:void(0);':$slide_show->link;?>" class="image-container">
    				<img src="/assets/upload/img/<?php echo $slide_show->image_name;?>" alt="slide-show"/> 
    			    </a>
    			    <p>
    				<?php echo $slide_show->description; ?>
    			    </p>
    			</td>
			<?php endforeach; ?>
		    </tr>
		</tbody>
	    </table>
	    <ul>
		<?php for ($i = 1; $i < count($slide_shows) + 1; $i++): ?>
    		<li><a href="javascript:void(0);"><?php echo $i; ?></a></li>
		<?php endfor; ?>
	    </ul>
	</div>
	<?php endif; ?>
	<?php if($record->category == 2): ?>
	<a href="/city/index/<?php echo $id;?>"><?php echo $this->lang->line('client_list');?></a>
	<?php endif;?>
	<h3><?php echo $record->title;?></h3>
	<div class="description">
	    <?php echo $record->content; ?> 
	</div>
    </div>
    
    <div class="clear"></div>
</div>